#include "QPotentialMuscle.h"

QPotentialMuscle::QPotentialMuscle()
{
    type = 2;
}

void QPotentialMuscle::calculateForce(void)
{
    l = sqrt(pow(nList[0]->getPos().x()-nList[1]->getPos().x(),2)+pow(nList[0]->getPos().y()-nList[1]->getPos().y(),2));
    f = k*(0.6*memPot + defL - l);
}
